import Find from '../views/Find.vue'
import My from '../views/My.vue'
import Friend from '../views/Friend.vue'
import NotFound from '../views/NotFound.vue'

// 路由的规则
const routes = [
  {
    path:"/",
    redirect:'/find'
  },
    {
      name:'find',
      // 路径 锚点
      path:'/find',
      // 组件
      component:Find,
    },
    {
      name:'my',
      // 路径 锚点
      path:'/my',
      // 组件
      component:My,
    },
    {
      name:'part',
      // 路径 锚点
      path:'/part',
      // 组件
      component:Friend,
    },
    {
      // 路径 锚点
      path:'/part/:username',
      // 组件
      component:Friend,
    },
    {
      path:'*',
      component:NotFound
    }
  ]

  export default routes